package com.yb.guigu.pick.system.controller;


import com.yb.guigu.pick.system.service.IBannerService;
import com.yb.guigu.pick.core.bean.GuiguResult;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 姚兵
 * @since 2023-06-11
 */
@RestController
@RequestMapping("/banner")
@AllArgsConstructor
public class BannerController {

    IBannerService bannerService;


    @GetMapping("/list")
    public GuiguResult<?> list(){
        return GuiguResult.success(bannerService.list());
    }
}
